//
//  UIScreen+EXtension.swift
//  weibo
//
//  Created by Fly on 2017/12/16.
//  Copyright © 2017年 Fly. All rights reserved.
//

import Foundation
import UIKit

extension UIScreen {

    /// 屏幕宽度
    open class var screenWidth: CGFloat {
    
        let screenRect = UIScreen.main.bounds
        
        let width: CGFloat = screenRect.width
        
        return width
    
    }

    /// 屏幕高度
    open class var screenHeight: CGFloat {
        
        let screenRect = UIScreen.main.bounds
        
        let height: CGFloat = screenRect.height
        
        return height
        
    }

    /// 分辨率宽度值
    open class var resolutionWidth: CGFloat {
    
        let screenRect = UIScreen.main.bounds
        
        let screenSize = screenRect.size
        
        let screenScale = UIScreen.main.scale
        
        return screenSize.width * screenScale
    
    }
    
    /// 分辨率高度值
    open class var resolutionHeight: CGFloat {
    
        let screenRect = UIScreen.main.bounds
        
        let screenSize = screenRect.size
        
        let screenScale = UIScreen.main.scale
        
        return screenSize.height * screenScale

    
    }
    

}
